package com.bloveoa.zkkd.doman;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Table(name = "t_user")
@Data
@Accessors(chain = true)
@DynamicInsert
@DynamicUpdate
@Entity
@ApiModel(value = "UserModel", description = "用户列表")
public class UserModel implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", insertable = false, nullable = false)
    private Integer id;
    @ApiModelProperty(value = "钱包地址", name = "address", example = "")
    @Column(name = "address")
    private String address;
    @ApiModelProperty(value = "token平台数量", name = "tokenNum", example = "1")
    @Column(name = "token_num")
    private Integer tokenNum;
    @ApiModelProperty(value = "绑定的盒子mac", name = "boxMac", example = "0")
    @Column(name = "box_mac")
    private String boxMac;
    @ApiModelProperty(value = "token锁仓数量", name = "locked_num", example = "0")
    @Column(name = "locked_num")
    private Integer lockedNum;
}
